package com.aust.annotation;

@Annotation1("Hello")
@Annotation2("second")
@Annotation3("你好")
public class Student {
    @Annotation1("World")
    @Annotation2(value = "哇哦", count = 90)
    private String name;
    private int age;

    @Annotation1("construct")
    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    /**
     * 获取
     *
     * @return name
     */
    @Annotation1("method")
    public String getName() {
        return name;
    }

    /**
     * 设置
     *
     * @param name
     */
    public void setName(@Annotation1("你好") String name) {
        this.name = name;
    }

    /**
     * 获取
     *
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     *
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    public String toString() {
        return "Student{name = " + name + ", age = " + age + "}";
    }

    public static void main(String[] args) {

    }
}
